﻿using System;
using CrystalDecisions.Enterprise.Desktop;
using BO.Management.QueryBuilder;

namespace BO.Management
{
    public class ShortcutProvider : BaseInfoObjectProvider<Shortcut>
    {

        /// <summary>
        /// Default constructor required the LogonProvider used to connect to BO Cms
        /// </summary>
        /// <param name="logonProvider"></param>
        public ShortcutProvider(LogonProvider logonProvider)
            : base(logonProvider)
        {

        }

        public override ObjectKind Kind
        {
            get { return ObjectKind.Shortcut; }
        }


        public void AddFilterToTargetId(Int32 targetId)
        {
            this.QueryBuilder.AddParameter<Int32>(InfoStoreFieldNames.AliasTargetId, OperatorType.Equal, targetId);
        }
    }
}
